package za.ac.lance.polymorphism.model;

/**
 * File Name: LoanRequestHandler.java
 * Version:
 * Description:
 * Package: za.ac.lance.polymorphism.model
 * Author: Lance
 * Date: Feb 23, 2012
 */
public class LoanRequestHandler
{

    private int balance;
    private int period;

    public LoanRequestHandler(int balance, int period)
    {
        this.balance = balance;
        this.period = period;
    }

    public int getBalance()
    {
        return balance;
    }

    public void setBalance(int balance)
    {
        this.balance = balance;
    }

    public int getPeriod()
    {
        return period;
    }

    public void setPeriod(int period)
    {
        this.period = period;
    }
    
//    public void approveLoan(Validator validator)
//    {
//        if (validator.isValid(this))
//        {
//            System.out.println("Loan approved . . . ");
//        }
//        else
//        {
//            System.out.println("Sorry not enough balance . . . ");
//        }
//    }
}
